package com.partners.dao.basic;

import com.partners.dao.bo.PointsLogDO;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface PointsLogDao {
    int deleteByPrimaryKey(Integer id);

    int insert(PointsLogDO record);

    int insertSelective(PointsLogDO record);

    PointsLogDO selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(PointsLogDO record);

    int updateByPrimaryKey(PointsLogDO record);

    List<Map<String,Object>> getPointsList(@Param("uid") Integer uid,
                                           @Param("title") String title,
                                           @Param("startTime") Integer startTime,
                                           @Param("endTime") Integer endTime);

    List<Map<String,Object>> getPointsRecommendList(@Param("title") String title,
                                                    @Param("type") Integer type,
                                                    @Param("startTime") Integer startTime,
                                                    @Param("endTime") Integer endTime);

    Map<String,Object> getPointDetailById(@Param("id") Integer id);


    Map<String,Object> getRecommendDetail(Integer orderid);

    List<Map<String,Object>> getAllPointsList(@Param("title") String title,
                                              @Param("startTime") String startTime,
                                              @Param("endTime") String endTime);

    Map<String,Object> selectOrderByOrderId(Integer orderid);
}
